#include <stdio.h>

/*
 * 运算符 %
 */

int main()
{
	int a;

	printf("%x %x\n", a%16, a%10);

	return 0;
}

#if 0

/*
 * intel
 */
0000000000001149 <main>:
    1149:	f3 0f 1e fa          	endbr64 
    114d:	55                   	push   %rbp
    114e:	48 89 e5             	mov    %rsp,%rbp
    1151:	48 83 ec 10          	sub    $0x10,%rsp
    1155:	8b 4d fc             	mov    -0x4(%rbp),%ecx	// ecx=(rbp-0x4)
    1158:	48 63 c1             	movslq %ecx,%rax	// rax=ecx
    115b:	48 69 c0 67 66 66 66 	imul   $0x66666667,%rax,%rax	// 
    1162:	48 c1 e8 20          	shr    $0x20,%rax	// rax>>0x20
    1166:	89 c2                	mov    %eax,%edx	// edx=eax
    1168:	c1 fa 02             	sar    $0x2,%edx	// edx>>0x2
    116b:	89 c8                	mov    %ecx,%eax	// eax=ecx
    116d:	c1 f8 1f             	sar    $0x1f,%eax	// eax>>0x1f
    1170:	29 c2                	sub    %eax,%edx	// edx-=eax
    1172:	89 d0                	mov    %edx,%eax	// eax=edx
    1174:	c1 e0 02             	shl    $0x2,%eax	// eax<<0x2
    1177:	01 d0                	add    %edx,%eax	// eax=edx
    1179:	01 c0                	add    %eax,%eax	// eax+=eax
    117b:	29 c1                	sub    %eax,%ecx	// ecx-=eax
    117d:	89 ca                	mov    %ecx,%edx	// edx=ecx
    117f:	8b 45 fc             	mov    -0x4(%rbp),%eax	// eax=(rbp-0x4)
    1182:	89 c1                	mov    %eax,%ecx	// ecx=eax
    1184:	c1 f9 1f             	sar    $0x1f,%ecx	// ecx>>0x1f
    1187:	c1 e9 1c             	shr    $0x1c,%ecx	// ecx>>0x1c
    118a:	01 c8                	add    %ecx,%eax	// eax+=ecx
    118c:	83 e0 0f             	and    $0xf,%eax	// eax&0xf
    118f:	29 c8                	sub    %ecx,%eax	// eax-=ecx
    1191:	89 c6                	mov    %eax,%esi
    1193:	48 8d 3d 6a 0e 00 00 	lea    0xe6a(%rip),%rdi        # 2004 <_IO_stdin_used+0x4>
    119a:	b8 00 00 00 00       	mov    $0x0,%eax
    119f:	e8 ac fe ff ff       	callq  1050 <printf@plt>
    11a4:	b8 00 00 00 00       	mov    $0x0,%eax
    11a9:	c9                   	leaveq 
    11aa:	c3                   	retq   
    11ab:	0f 1f 44 00 00       	nopl   0x0(%rax,%rax,1)

/*
 * arm
 */
000000000040055c <main>:
  40055c:	a9be7bfd 	stp	x29, x30, [sp, #-32]!
  400560:	910003fd 	mov	x29, sp
  400564:	b9401fa0 	ldr	w0, [x29, #28]
  400568:	6b0003e1 	negs	w1, w0
  40056c:	12000c00 	and	w0, w0, #0xf	// w0=w0&0xf
  400570:	12000c21 	and	w1, w1, #0xf	// w1=w1&0xf
  400574:	5a814403 	csneg	w3, w0, w1, mi  // mi = first
  400578:	b9401fa1 	ldr	w1, [x29, #28]
  40057c:	528ccce0 	mov	w0, #0x6667                	// #26215
  400580:	72acccc0 	movk	w0, #0x6666, lsl #16
  400584:	9b207c20 	smull	x0, w1, w0
  400588:	d360fc00 	lsr	x0, x0, #32	// x0=x0<<32
  40058c:	13027c02 	asr	w2, w0, #2	// w2=w0>>2
  400590:	131f7c20 	asr	w0, w1, #31	// w0=w1>>31
  400594:	4b000042 	sub	w2, w2, w0	// w2=w2-w0
  400598:	2a0203e0 	mov	w0, w2		// w0=w2
  40059c:	531e7400 	lsl	w0, w0, #2	// w0=w0<<2
  4005a0:	0b020000 	add	w0, w0, w2	// w0=w0+w2
  4005a4:	531f7800 	lsl	w0, w0, #1	// w0=w0<<1
  4005a8:	4b000022 	sub	w2, w1, w0
  4005ac:	90000000 	adrp	x0, 400000 <_init-0x3e8>
  4005b0:	9119e000 	add	x0, x0, #0x678
  4005b4:	2a0303e1 	mov	w1, w3
  4005b8:	97ffffa6 	bl	400450 <printf@plt>
  4005bc:	52800000 	mov	w0, #0x0                   	// #0
  4005c0:	a8c27bfd 	ldp	x29, x30, [sp], #32
  4005c4:	d65f03c0 	ret

#endif

